Optimal. Leaf size=12 \[ -\frac {\cos (x)}{b+a \sin (x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {2833, 8}
\begin {gather*} -\frac {\cos (x)}{a \sin (x)+b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2833
Rubi steps
\begin {align*} \int \frac {a+b \sin (x)}{(b+a \sin (x))^2} \, dx &=-\frac {\cos (x)}{b+a \sin (x)}+\frac {\int 0 \, dx}{a^2-b^2}\\ &=-\frac {\cos (x)}{b+a \sin (x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 12, normalized size = 1.00 \begin {gather*} -\frac {\cos (x)}{b+a \sin (x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(35\) vs.
\(2(12)=24\).
time = 0.12, size = 36, normalized size = 3.00
method | result | size |
default | \(\frac {-\frac {a \tan \left (\frac {x}{2}\right )}{b}-1}{\frac {b \left (\tan ^{2}\left (\frac {x}{2}\right )\right )}{2}+a \tan \left (\frac {x}{2}\right )+\frac {b}{2}}\) | \(36\) |
risch | \(-\frac {2 \left (i a +b \,{\mathrm e}^{i x}\right )}{a \left (a \,{\mathrm e}^{2 i x}-a +2 i b \,{\mathrm e}^{i x}\right )}\) | \(40\) |
norman | \(\frac {-2 \left (\tan ^{2}\left (\frac {x}{2}\right )\right )-\frac {2 a \tan \left (\frac {x}{2}\right )}{b}-\frac {2 a \left (\tan ^{3}\left (\frac {x}{2}\right )\right )}{b}-2}{\left (1+\tan ^{2}\left (\frac {x}{2}\right )\right ) \left (b \left (\tan ^{2}\left (\frac {x}{2}\right )\right )+2 a \tan \left (\frac {x}{2}\right )+b \right )}\) | \(63\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 12, normalized size = 1.00 \begin {gather*} -\frac {\cos \left (x\right )}{a \sin \left (x\right ) + b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 32 vs.
\(2 (12) = 24\).
time = 0.43, size = 32, normalized size = 2.67 \begin {gather*} -\frac {2 \, {\left (a \tan \left (\frac {1}{2} \, x\right ) + b\right )}}{{\left (b \tan \left (\frac {1}{2} \, x\right )^{2} + 2 \, a \tan \left (\frac {1}{2} \, x\right ) + b\right )} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 7.87, size = 24, normalized size = 2.00 \begin {gather*} -\frac {a\,\sin \left (x\right )+b\,\left (\cos \left (x\right )+1\right )}{b\,\left (b+a\,\sin \left (x\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________